﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AdminInfoBorrowed.aspx.vb"
    Inherits="QLThuVien.AdminInfoBorrowed" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Thông Tin Sách </title>
    <link href="../assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/font-awesome.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function HidePopup(s, e) {
            var p = window.parent;
            var popup = p.window["popup_muonsach"];
            popup.Hide();
        }
       function GetQueryStringByParameter(name) {
        name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
        var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
        return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
    }
        function showPopupConfirm(s, e) {
            var p = window.parent;
            var popup = p.window["popup_xacnhanmuon"];
            var taikhoan = GetQueryStringByParameter("taikhoan");
            var kieumuon = GetQueryStringByParameter("kieumuon"); 
            var ngaytra = GetQueryStringByParameter("ngaytra"); 
            var ngaymuon = GetQueryStringByParameter("ngaymuon");
            var id_sach = GetQueryStringByParameter("id_sach");
            var sosach = GetQueryStringByParameter("sosach");       
            popup.SetContentUrl("popup_templates/AdminConfirmBorrowed.aspx?taikhoan=" + taikhoan + "&ngaymuon=" + ngaymuon + "&kieumuon=" + kieumuon + "&ngaytra=" +ngaytra +"&id_sach=" + id_sach +"&sosach=" +sosach);    
            popup.Show(); 
        }
     
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
        <asp:DataList ID="DataList_Sach" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
            <ItemTemplate>
                <table width="100%">
                    <tbody class="col-lg-12">
                        <tr style="border-bottom: 3px solid gray">
                            <div style="font-size: x-large">
                                <span class="label label-danger">Mã Sách:</span> <b class="text-info">
                                    <%#Eval("id_sach")%>
                                </b>
                            </div>
                            <td class="col-sm-4">
                                <div class="form-group">
                                    <span class="label label-primary">Tên Sách:</span>
                                    <%# Eval("tensach")%>
                                </div>
                                <div class="form-group">
                                    <span class="label label-primary">Tác Giả:</span>
                                    <%# Eval("tacgia")%>
                                </div>
                                <div class="form-group">
                                    <span class="label label-primary">Chi Tiết:</span>
                                    <%# Eval("chitiet")%>
                                </div>
                            </td>
                            <td class="col-sm-4">
                                <div class="form-group">
                                    <span class="label label-primary">Nhà Xuất Bản:</span>
                                    <%# Eval("nxb")%>
                                </div>
                                <div class="form-group">
                                    <span class="label label-primary">Phân Loại:</span>
                                    <%# Eval("phanloai")%>
                                </div>
                            </td>
                            <td class="col-sm-4">
                                <div class="form-group">
                                    <span class="label label-primary">Hàng:</span>
                                    <%# Eval("hang")%>
                                </div>
                                <div class="form-group">
                                    <span class="label label-primary">Kệ:</span>
                                    <%# Eval("ke")%>
                                </div>
                            </td>
                            <td class="col-lg-6 col-sm-3" style="padding-bottom: 5px">
                                <div>
                                    <div class="row">
                                        <dx:ASPxImage ID="img_info" runat="server" ImageUrl='<%#Eval("hinh")%>' Height="160px"
                                            Width="250px" ShowLoadingImage="true" EmptyImage-Url="~/img/no-thumbnail.png">
                                        </dx:ASPxImage>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </ItemTemplate>
        </asp:DataList>
        <table width="100%">
            <tbody class="col-lg-12">
                <tr>
                    <td class="col-lg-6 col-sm-5">
                        <div class="row" style="padding-top: 20px; padding-bottom: 5px; float: right">
                            <dx:ASPxButton ID="btn_dongy" runat="server" CssClass="btn btn-primary" Text="Xác Nhận">
                                <ClientSideEvents Click="showPopupConfirm" />
                            </dx:ASPxButton>
                            <dx:ASPxButton ID="btn_quaylai" runat="server" CssClass="btn btn-danger" Text="Quay Lại">
                                <ClientSideEvents Click="HidePopup" />
                            </dx:ASPxButton>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
        
    </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
